package com.javabean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: 张波
 * @Time: 2025/8/28 12:11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Users {
	private int id;
	private String email;
	private String username;
	private String password;
	private String phoneNum;
	private int status;// '状态0 未开启 1 开启'
	private String statusStr;
	private Role role;

	public String getStatusStr() {
		if(status==0){
			statusStr="未开启";
		}else if(status==1){
			statusStr="开启";
		}
		return statusStr;
	}
}
